<!DOCTYPE html>
<html lang="en">

<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>博客后台管理系统</title>

    <!-- Custom fonts for this template-->
    <link href="/static/admin/vendor/fontawesome-free/css/all.min.css" rel="stylesheet" type="text/css">

    <!-- Page level plugin CSS-->
    <link href="/static/admin/vendor/datatables/dataTables.bootstrap4.css" rel="stylesheet">

    <!-- Custom styles for this template-->
    <link href="/static/admin/css/sb-admin.css" rel="stylesheet">

</head>

<body id="page-top">

<nav class="navbar navbar-expand navbar-dark bg-dark static-top">

    <a class="navbar-brand mr-1" href="index.html">后台系统</a>

    <button class="btn btn-link btn-sm text-white order-1 order-sm-0" id="sidebarToggle" href="#">
        <i class="fas fa-bars"></i>
    </button>

    <!-- Navbar Search -->
    <form class="d-none d-md-inline-block form-inline ml-auto mr-0 mr-md-3 my-2 my-md-0">
        <div class="input-group">
            <input type="text" class="form-control" placeholder="搜索" aria-label="Search" aria-describedby="basic-addon2">
            <div class="input-group-append">
                <button class="btn btn-primary" type="button">
                    <i class="fas fa-search"></i>
                </button>
            </div>
        </div>
    </form>

    <!-- Navbar -->
    <ul class="navbar-nav ml-auto ml-md-0">
        <li class="nav-item dropdown no-arrow">
            <a class="nav-link dropdown-toggle" href="#" id="userDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                <i class="fas fa-user-circle fa-fw"></i>
            </a>
            <div class="dropdown-menu dropdown-menu-right" aria-labelledby="userDropdown">
                <a class="dropdown-item" href="{:url('backend/account/index')}">修改密码</a>
                <div class="dropdown-divider"></div>
                <a class="dropdown-item" href="" data-toggle="modal" data-target="#logoutModal">安全退出</a>
            </div>
        </li>
    </ul>

</nav>

<div id="wrapper">

    <!-- Sidebar -->
    <ul class="sidebar navbar-nav">
        <li class="nav-item active">
            <a class="nav-link" href="{:url('backend/index/index')}">
                <i class="fas fa-fw fa-tachometer-alt"></i>
                <span>主页面</span>
            </a>
        </li>
        <li class="nav-item active">
            <a class="nav-link" href="{:url('backend/tag/index')}">
                <i class="fas fa-fw fa-tachometer-alt"></i>
                <span>标签管理</span>
            </a>
        </li>
        <li class="nav-item active">
            <a class="nav-link" href="{:url('backend/post/index')}">
                <i class="fas fa-fw fa-tachometer-alt"></i>
                <span>贴子管理</span>
            </a>
        </li>
        <li class="nav-item active">
            <a class="nav-link" href="{:url('backend/comment/index')}">
                <i class="fas fa-fw fa-tachometer-alt"></i>
                <span>评论管理</span>
            </a>
        </li>
        <li class="nav-item active">
            <a class="nav-link" href="{:url('backend/setting/index')}">
                <i class="fas fa-fw fa-tachometer-alt"></i>
                <span>系统配置</span>
            </a>
        </li>

    </ul>

    <div id="content-wrapper">

        <div class="container-fluid">

            {__CONTENT__}

        </div>
        <!-- /.container-fluid -->

        <!-- Sticky Footer -->
        <footer class="sticky-footer">
            <div class="container my-auto">
                <div class="copyright text-center my-auto">
                    <span>Copyright © 山西岐伯信息科技有限公司 {:date('Y-m')} </span>
                </div>
            </div>
        </footer>

    </div>
    <!-- /.content-wrapper -->

</div>
<!-- /#wrapper -->

<!-- Scroll to Top Button-->
<a class="scroll-to-top rounded" href="#page-top">
    <i class="fas fa-angle-up"></i>
</a>

<!-- Logout Modal-->
<div class="modal fade" id="logoutModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="exampleModalLabel">确定要离开吗?</h5>
                <button class="close" type="button" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">×</span>
                </button>
            </div>
            <div class="modal-body">如果你要离开的话，请选择“退出”！</div>
            <div class="modal-footer">
                <button class="btn btn-secondary" type="button" data-dismiss="modal">不退出</button>
                <a class="btn btn-primary" href="{:url('backend/login/logout')}">退出</a>
            </div>
        </div>
    </div>
</div>

<!-- Bootstrap core JavaScript-->
<script src="/static/admin/vendor/jquery/jquery.min.js"></script>
<script src="/static/admin/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>

<!-- Core plugin JavaScript-->
<script src="/static/admin/vendor/jquery-easing/jquery.easing.min.js"></script>

<!-- Page level plugin JavaScript-->
<script src="/static/admin/vendor/chart.js/Chart.min.js"></script>
<script src="/static/admin/vendor/datatables/jquery.dataTables.js"></script>
<script src="/static/admin/vendor/datatables/dataTables.bootstrap4.js"></script>

<!-- Custom scripts for all pages-->
<script src="/static/admin/js/sb-admin.min.js"></script>

<!-- Demo scripts for this page-->
<script src="/static/admin/js/demo/datatables-demo.js"></script>
<script src="/static/admin/js/demo/chart-area-demo.js"></script>

</body>

</html>
